package com.shsh.safemanage.model;

import java.util.Calendar;

public class Tendency extends Problem {
	private Integer tendencyTypeID;
	private String tendencyType;
	private String reason;
	private String loss;
	private String duty;
	private String team;
	private Calendar tendencyTime;
	private Calendar tendencyWriteTime;
	private Long tendencyWriteUserID;

	public Tendency() {

	}

	public Long getTendencyWriteUserID() {
		return tendencyWriteUserID == null ? getWriteUserID() : tendencyWriteUserID;
	}

	public void setTendencyWriteUserID(Long tendencyWriteUserID) {
		this.tendencyWriteUserID = tendencyWriteUserID;
	}

	public Calendar getTendencyWriteTime() {
		return tendencyWriteTime == null ? getWriteTime() : tendencyWriteTime;
	}

	public void setTendencyWriteTime(Calendar tendencyWriteTime) {
		this.tendencyWriteTime = tendencyWriteTime;
	}

	public Calendar getTendencyTime() {
		return tendencyTime == null ? getWriteTime() : tendencyTime;
	}

	public void setTendencyTime(Calendar tendencyTime) {
		this.tendencyTime = tendencyTime;
	}

	public Tendency(Problem problem) {
		super(problem);
	}

	public String getDuty() {
		return duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	public String getTeam() {
		return team;
	}

	public void setTeam(String team) {
		this.team = team;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getLoss() {
		return loss;
	}

	public void setLoss(String loss) {
		this.loss = loss;
	}

	public Integer getTendencyTypeID() {
		return tendencyTypeID;
	}

	public void setTendencyTypeID(Integer tendencyTypeID) {
		this.tendencyTypeID = tendencyTypeID;
	}

	public String getTendencyType() {
		return tendencyType;
	}

	public void setTendencyType(String tendencyType) {
		this.tendencyType = tendencyType;
	}
}
